xend: fix best NUMA node allocation
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Apr 2010 16:36:16 +0000 (17:36 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Apr 2010 16:36:16 +0000 (17:36 +0100)
commita667809cd458f9fb8685553d90e90aaced2dfdc5
tree4bbafe4f4bddc8183d4cfe9c3bd8d68aeb7b52ce
parent254a13846c7906785b0191c8b3210e3a6db866da
xend: fix best NUMA node allocation

Since we moved several NUMA info fields from physinfo into separate
functions/structures, we must adapt the node picking algorithm, too.
Currently xm create complains about undefined hash values.
The patch uses the new Python xc binding to get the information and
create a reverse mapping for node_to_cpu, since we now only have a
cpu_to_node field.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
tools/python/xen/xend/XendDomainInfo.py